 //
// Created by 86176 on 2021/11/26.
//

#ifndef CHENYUENEW_IDLESTATUS_H
#define CHENYUENEW_IDLESTATUS_H


#include <cerrno>

class IdleStatus {
public:
    time_t lastWriteTime;
    time_t lastReadTime;
    time_t lastEventTime;
    time_t thisTime;
    bool readIdle;
    bool writeIdle;
    bool bothIdle;
    time_t yourIdleTime;
public:
    explicit IdleStatus(time_t time);
    void CheckReadTime(time_t time);
    void CheckWriteTime(time_t time);

};


#endif //CHENYUENEW_IDLESTATUS_H
